/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.logikas.hipokrates.server.services;

import com.logikas.hipokrates.server.dao.PersonDao;
import com.logikas.hipokrates.shared.PersonDto;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.inject.Named;

/**
 * 
 * @author Cristian Rinaldi  cristian.rinaldi@logikas.com
 * @version
 * @date 23/05/2012
 * Logikas - Conectacto Ideas 
 */
@Named
@RequestScoped
public class PersonServiceImpl implements PersonService{

    private final PersonDao dao;
    
    @Inject
    public PersonServiceImpl(PersonDao dao) {
        this.dao = dao;
    }

    public void persist(PersonDto dto) {
        
        
        dao.persist(mapper(dto));
        
    }
    
    
    
    

}
